<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.ArrayList,blog.entities.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改状态</title>
<!--    为了确保适当的绘制和触屏缩放，需要在 <head> 之中添加 viewport 元数据标签。-->
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

<!--     jQuery文件。务必在bootstrap.min.js 之前引入
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script> -->

<script
  src="https://code.jquery.com/jquery-3.4.1.js"
  integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
  crossorigin="anonymous"></script>

   <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
	<%
		ArrayList<User> userList = null;
		Object obj = session.getAttribute("remainingUser");
		if (obj != null) {
			userList = (ArrayList<User>)obj;
		}
	%>
<div class="container">
	<h2>用户列表信息</h2>
	<div class="btn-group">
		<a class="btn btn-primary" id="btn_backward_page">返回</a>
	</div>


<div class="table-responsive">
	<table class="table table-hover table-bordered">
		<caption>成员信息管理中心</caption>
		<thead>
			<tr>
				<th>Id</th>
				<th>用户名</th>
				<th>昵称</th>
				<th>邮箱</th>
				<th>链接</th>
				<th>使用状态</th>
			</tr>
		</thead>
		<tbody>
<%
	for(User u : userList) {
%>
			<tr>
				<td><%=u.getId() %></td>
				<td><%=u.getUsername() %></td>
				<td><%=u.getNickname() %></td>
				<td><%=u.getEmail() %></td>
				<td><%=u.getUrl() %></td>
				<td><%=u.getDelete_status() %></td>
			</tr>
<%
	}
%>
		</tbody>
	</table>
</div>
</div>
<script type="text/javascript">
	$('#btn_backward_page').on("click",function(){
		location.href = "<%=request.getContextPath() %>/modifyUser?option=mgrCenter";
	}); 
</script>
</body>
</html>